package org.edu.modules.sxjy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.edu.modules.sxjy.entity.VeTrade;
import org.edu.modules.sxjy.mapper.VeTradeMapper;
import org.edu.modules.sxjy.service.IVeTradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VeTradeServiceImpl
        extends ServiceImpl<VeTradeMapper, VeTrade>
        implements IVeTradeService
{
    @Autowired
    VeTradeMapper veTradeMapper;

    public List<VeTrade> selectAllList(VeTrade veTrade)
    {
        return this.veTradeMapper.selectAllList(veTrade);
    }

    public List<VeTrade> selectAll(VeTrade veTrade, Integer startLine, Integer pageSize)
    {
        return this.veTradeMapper.selectAll(veTrade, startLine, pageSize);
    }

    public int getTradeId(String tradeTitle)
    {
        return this.veTradeMapper.getTradeId(tradeTitle);
    }

    public int getSumPage(VeTrade veTrade)
    {
        return this.veTradeMapper.getSumPage(veTrade);
    }

    public VeTrade getTrade(String tradeTitle)
    {
        return this.veTradeMapper.getTrade(tradeTitle);
    }
}
